<div style="margin-bottom:20px"></div>

@if (count($report_members))
<div class="panel panel-default">
  <!-- Table -->
  <table class="table">
    <thead>
      <tr>
        <th>{{ lang('User Name') }}</th>
        <th>{{ lang('User Studno') }}</th>
        <th>{{ lang('Report Rate') }}</th>
      </tr>
    </thead>
    <tbody>
    @foreach ($report_members as $member)
      <tr>
        <th scope="row" title="{{ $member->studno ? : '' }}"><a href="{{ route('users.show', [$member->id]) }}">{{ $member->real_name ? : $member->name }}</a></th>
        <td>
            {{ $member->studno ? : '' }}
        </td>
        <td>
          @if(count($member->reports))
            @foreach ($member->reports as $report)
              <a href="{{ route('reports.show', [$report->id]) }}" title="{{$report->title}}">{{$report->section->title}}<span> • </span>{{ $report->rate == 1 ? 'D' : ($report->rate == 2 ? 'C' : ($report->rate == 3 ? 'B' : ($report->rate == 4 ? 'A' : '未评级')))}}&nbsp;</a>
            @endforeach
          @else
              {{ lang('Dont have any report member yet') }}
          @endif
        </td>
      </tr>
    @endforeach
    </tbody>
  </table>
</div>

@else
   <div class="empty-block">{{ lang('Dont have any report members Yet') }}~~</div>
@endif
